package com.sz.stock.client;

import com.sz.stock.common.ResultBean;
import com.sz.stock.model.Deal;
import com.sz.stock.model.Entrust;
import com.sz.stock.model.POS;
import com.sz.stock.model.StockBuyOrSale;
import org.springframework.stereotype.Component;

import java.util.ArrayList;

@Component
public class TradingClientImpl implements TradingClient {
    @Override
    public ResultBean allPos(int userid) {
        return new ResultBean(101, "熔断器返回的null", null);
    }

    @Override
    public ResultBean selectPos(POS pos) {
        return new ResultBean(101, "熔断器返回的null", null);
    }

    @Override
    public ResultBean addEntrust(Entrust entrust) {
        return new ResultBean(101, "熔断器返回的null", null);
    }

    @Override
    public ResultBean getAStock(String code) {
        return new ResultBean(101, "熔断器返回的null", null);
    }

    @Override
    public ResultBean posUpdate(POS pos) {
        return new ResultBean(101, "熔断器返回的null", null);
    }

    @Override
    public ResultBean showEntrust(int userid) {
        return new ResultBean(101, "熔断器返回的null", null);
    }

    @Override
    public ResultBean keywordEntrust() {
        return new ResultBean(101, "熔断器返回的null", null);
    }

    @Override
    public ResultBean keywordEntrust2(int pageIndex, int pageSize, int userid, String stockEntrustCode) {
        return new ResultBean(101, "熔断器返回的null", null);
    }

    @Override
    public ResultBean keywordEntrust3(int pageIndex, int pageSize, int userid, Entrust entrust) {
        return new ResultBean(101, "熔断器返回的null", null);
    }

    @Override
    public ResultBean cancelStock(ArrayList<Integer> stockEntrustIds) {
        return new ResultBean(101, "熔断器返回的null", null);
    }

    @Override
    public ResultBean selectEntrustById(int stockEntrustId) {
        return new ResultBean(101, "熔断器返回的null", null);
    }

    @Override
    public ResultBean updateMoney(Entrust entrust) {
        return new ResultBean(101, "熔断器返回的null", null);
    }

    @Override
    public ResultBean canelStock2(int userid) {
        return new ResultBean(101, "熔断器返回的null", null);
    }

    @Override
    public ResultBean canelStock3(int userid) {
        return new ResultBean(101, "熔断器返回的null", null);
    }

    @Override
    public ResultBean allDeal2(int pageIndex, int pageSize, int userid, String stockDealCode) {
        return new ResultBean(101, "熔断器返回的null", null);
    }

    @Override
    public ResultBean getFive(String code, String type) {
        return new ResultBean(101, "熔断器返回的null", null);
    }

    @Override
    public ResultBean getMyPos(int userid, int pageIndex, int pageSize, String searchCode) {
        return new ResultBean(101, "熔断器返回的null", null);
    }

    @Override
    public ResultBean selectSellEntrust(Entrust entrust) {
        return new ResultBean(101, "熔断器返回的null", null);
    }

    @Override
    public ResultBean addEntrustForBuy(Entrust entrust) {
        return new ResultBean(101, "熔断器返回的null", null);
    }

    @Override
    public ResultBean addPosForBuy(POS pos) {
        return new ResultBean(101, "熔断器返回的null", null);
    }

    @Override
    public POS getOnePos(String code, Integer userId) {
        return new POS();
    }

    @Override
    public Entrust getOneEntrust(Integer stockEntrustId) {
        return new Entrust();
    }

    @Override
    public ResultBean addDeal(Deal deal) {
        return new ResultBean(101, "熔断器返回的null", null);
    }

    @Override
    public Integer updateEntrust(Entrust entrust) {
        return null;
    }

    @Override
    public Integer updatePos(POS pos) {
        return null;
    }

    @Override
    public Entrust selectEntrustByContractID(String contractID) {
        return new Entrust();
    }

    @Override
    public StockBuyOrSale selectBos(Entrust entrust) {
        return null;
    }

    @Override
    public ResultBean updateBos(StockBuyOrSale stockBuyOrSale) {
        return null;
    }
}
